package com.lixixi.tingshu.exception;

import com.lixixi.tingshu.common.result.ResultCodeEnum;
import lombok.Getter;

public class BaseException extends RuntimeException{
	@Getter
	ResultCodeEnum resultCodeEnum;

	@Getter
	Integer code;

	@Getter
	String message;

	public BaseException(String message) {
		super(message);
	}

	public BaseException() {
		super();
	}


	public BaseException(ResultCodeEnum resultCodeEnum){
		super();
		this.resultCodeEnum = resultCodeEnum;
	}

	public BaseException(Integer code, String message){
		this.code = code;
		this.message = message;
	}

}
